import request from '@/utils/request';

// 人员档案列表
export const personList = params => request({
    url: '/person/list',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
// 人员档案添加
export const personAdd = params => request({
    url: '/person/add',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
// 人员档案编辑
export const personUpdate = params => request({
    url: '/person/update',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
// 人员档案状态
export const statusUpdate = params => request({
    url: '/person/status/update',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
// 人员档案下拉列表
export const personPullList = params => request({
    url: '/person/pull/list',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
// 人员档案导入
export const personImp = params => request({
    url: '/person/imp',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
// 人员档案导出
export const personExport = params => request({
    url: '/person/export',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
// 人员档案详情
export const personDetail = params => request({
    url: '/person/get',
    method: 'GET',
    params
});
